﻿namespace Shop.Entity
{
    public enum OperationResultType
    {
        /// <summary>
        ///     操作成功
        /// </summary>
        Success = 0,
        /// <summary>
        ///     操作取消或操作没引发任何变化
        /// </summary>
        NoChanged = 1,
        /// <summary>
        ///     参数错误
        /// </summary>
        ParamError = 2,

        /// <summary>
        ///     指定参数的数据不存在
        /// </summary>
        QueryNull = 4,

        /// <summary>
        ///     权限不足
        /// </summary>
        PurviewLack = 8,

        /// <summary>
        ///     非法操作
        /// </summary>
        IllegalOperation = 16,

        /// <summary>
        ///     警告
        /// </summary>
        Warning = 32,

        /// <summary>
        ///     操作引发错误
        /// </summary>
        Error = 64,
        /// <summary>
        ///     系统异常
        /// </summary>
        Throws = 99,
        /// <summary>
        ///  获取数据
        /// </summary>
        GetList = 200,
        /// <summary>
        ///  获取数据
        /// </summary>
        GetData = 201,
    }
}